package com.zjsm.music;

import java.applet.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.*;
import sun.audio.AudioPlayer;

public class Win {
	private InputStream is = null;
	private String file = "resource/music/win.wav";
	
	public Win() {

	}
	
	public void play() throws IOException {
		is = new FileInputStream(new File(file));
		AudioPlayer.player.start(is);
	}
	
	public static void main(String[] args) {
		try {
			new Win().play();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
